package com.wmx.io.mashibing.io.nio;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.nio.channels.SocketChannel;

/**********************************
 * @author wmx
 * @date 2019/9/2 15:00
 * @description:
 * @version 1.0
 ************************************/
public class Client {
    public static void main(String[] args) throws IOException {
        int port = 1234;
        if (args != null && args.length > 0) {
            try {
                port = Integer.valueOf(args[0]);
            } catch (NumberFormatException e) {
                // 采用默认值
            }
        }
        new Thread(new TimeClientHandle("127.0.0.1", port), "TimeClient-001")
                .start();
    }


}
